
public class MyArray {

    int[] data;
    public MyArray(){
    	data=new int[10];
    }
    
    public MyArray(int n){
    	data=new int[n];   
    	int rand=0;
    	for(int i=0;i<n;i++){
    		rand=(int)(Math.random()*1000);
    		if(rand>99)
    		   data[i]=rand;
    		else
    		   i--; 	
    	}
    }
    
    public MyArray(int[] n){
    	this.data=n;
    }
    
    public void output(){
    	
    		for(int i=0;i<data.length;i++){
    			System.out.print(data[i]+" ");
    			System.out.println();
    		}   		
    	
    }
    
    public void sort(){
    	int temp=0;
    	for(int i=0;i<data.length;i++){
    		   for(int j=i+1;j<data.length;j++){
    			    if(data[j]>data[i]){
    			     temp = data[i];
    			     data[i] = data[j];
    			     data[j] = temp;
    			    }
    		   }
    	}
    	
    }


}
